<?php

namespace WidgetAdminBalk\Controller;

class Index extends \Controller {
    public function Index() {
        $this->_view = new \WidgetAdminBalk\Views\View();
        $this->_model = new \WidgetAdminBalk\Model\Index();
        
        $this->_view->setData('isadmin',$this->_model->isAdmin());
        
        if (intVal($_SESSION['persoonid']) == 0) {
            $this->_view->genereer('WidgetAdminBalk','Index','balkStandaard');
        } else {
            $this->_view->genereer('WidgetAdminBalk','Index','balkAangemeld');
        }        
    }
}
